Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is_empty for pseudo-matrices #1691

Merged
merged 5 commits into from
Nov 22, 2024
Merged

Conversation

SirToby25
Copy link
Contributor

It seems natural to have an 'is_empty'-method for pseudo-matrices, so this commit adds one. I also added a couple of tests.

Copy link

codecov bot commented Nov 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.96%. Comparing base (b9aaec0) to head (f96c8d5).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1691      +/-   ##
==========================================
+ Coverage   75.86%   75.96%   +0.10%     
==========================================
  Files         362      362              
  Lines      114327   114329       +2     
==========================================
+ Hits        86734    86853     +119     
+ Misses      27593    27476     -117     
Files with missing lines Coverage Δ
src/NumFieldOrd/NfOrd/LinearAlgebra.jl 58.00% <100.00%> (+0.81%) ⬆️

... and 34 files with indirect coverage changes

---- 🚨 Try these New Features:

@thofma
Copy link
Owner

thofma commented Nov 22, 2024

makes sense, thanks

@thofma
Copy link
Owner

thofma commented Nov 22, 2024

while you are at it, could you add a dummy test for printing?

@test sprint(show, p) isa String

where p is an empty pseudo-matrix

@thofma
Copy link
Owner

thofma commented Nov 22, 2024

merci

@thofma thofma merged commit 3f95a58 into thofma:master Nov 22, 2024
13 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants